package com.guli.edu.service;

import com.guli.edu.entity.EduVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.edu.entity.form.VideoInfoForm;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author Daniel
 * @since 2019-03-29
 */
public interface EduVideoService extends IService<EduVideo> {

    boolean getVideoByChapterId(String chapterId);

    boolean saveVideo(VideoInfoForm videoInfoForm);

    VideoInfoForm getVideoInfo(String id);

    boolean updateVideo(VideoInfoForm videoInfoForm);

    boolean deleteVideoById(String id);

    /***
     * 删除课程
     * @param courseId
     * @return
     */
    boolean removeCourseId(String courseId);
}
